<?php

class Application_Form_FLogowanie extends Zend_Form {

    public function init(){
        
        //$this->setAttrib('id', 'log');
        $this->setMethod('post');    
         
        $login = new Zend_Form_Element_Text('login');
        $login->setRequired('true')
              ->setAttrib('class', 'inputbox')            
              ->addFilter('StripTags')
              ->addFilter('StringTrim')
              ->removeDecorator('label')
              ->removeDecorator('HtmlTag')
              ->removeDecorator('Errors');
        $this->addElement($login);
        
        $password = new Zend_Form_Element_Password('password');
        $password->renderPassword = true;
        $password->setRequired('true')
                 ->setAttrib('class', 'inputbox')                 
                 ->addFilter('StripTags')
                 ->addFilter('StringTrim')
                 ->removeDecorator('label')
                 ->removeDecorator('HtmlTag')
                 ->removeDecorator('Errors');
        $this->addElement($password);
        
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('ZALOGUJ')
               ->setAttrib('class', 'button')
               ->removeDecorator('label')
               ->removeDecorator('HtmlTag')
               ->removeDecorator('DtDdWrapper');
        $this->addElement($submit);    
        
//        $submit_reje = new Zend_Form_Element_submit('submit_reje');
//         
//        $submit_reje->setLabel('<a href="">rejestracja</a>');                
//        $this->addElement($submit_reje);
//        $submit_reje->addDecorator('Label', array('escape' => false));
        
    }
}

?>
